﻿@model _17bangMVC.Models.ArticleListItemModel

<div style="padding:20px;border-bottom:30px">
    <span class="fa fa-calendar">@Model.PublishTime.ToString("yyyy年MM月dd日 hh点mm分")</span>
    <span style="float:right">作者：<a href="/Article?@Model.User.Id" target="_blank">@Model.User.Name</a></span>
    <h5><a href="/Article/Single?@Model.Id">@Model.Title</a></h5>
    <p>@Model.Body</p>
    <div style="display:block;width:100%">
        <span><label><b>关键字：</b></label></span>
        @for (int i = 0; i < Model.KeyWords.Count; i++)
        {
            <span class="badge badge-secondary">@Model.KeyWords[i].Name</span>
        }
    </div>
    <div style="float:right;border-bottom:10px">
        <span><a href="/Article/Single?@Model.Comments.Id" class="fa fa-comments-o">@Model.Comments.CommentCount</a></span>
        <span class="fa fa-thumbs-o-up">
            赞：@Model.Appraise.AgreeAmount
        </span>
        <span class="fa fa-thumbs-o-down">
            踩：@Model.Appraise.DisagreeAmount
        </span>
    </div>
</div>

